package com.nlp.visualization.service.backEnd;

import com.nlp.visualization.core.seg.SegmentType;
import com.nlp.visualization.core.seg.filter.SegFilter;

import java.io.File;
import java.io.IOException;
import java.util.List;

/**
 * @author LXM
 * @Title: IThemeManageService
 * @Description:主题模型管理接口
 * @date 2018/3/5下午3:25
 */
public interface IThemeManageService {

    //爬取最新的数据
    void updateNewsSpider(String startDate, String endDate, List<String> sites) throws Exception;

    //执行数据的分词
    void executeNewsSeg(File jsonFile, File textFile, SegmentType method, SegFilter filter) throws Exception;

    //训练并更新模型
    void trainAndSaveModel(int themeCount) throws IOException;

    //人工判断是属于哪类的主题
    void setThemesName(List<String> themes, String date) throws IOException;

}
